package com.caishi.lkx.common;

import com.zzw.common.ResultCode;
import lombok.Getter;

/**
 * @author by keray
 * date:2019/8/1 11:54
 * 返回code
 */
public enum AclResultCode implements ResultCode {
    //全局异常
    tokenExpire(101, "登录信息已过期，请重新登录"),
    busyLine(102, "您的账号已在其他地方登录，请确认是否本人登录。"),
    notLogin(103, "您还未登录，请先登录"),
    noPower(104, "您的账号权限不足"),
    authFail(106, "认证失败，请重新登录"),
    illegalRequest(110, "非法请求，无法受理"),
    bindGroup(112,"成功绑定机构"),
    localGroupInvalid(111, "机构失效");


    @Getter
    private final int code;
    @Getter
    private final String message;

    AclResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
